package com.chixing.service.impl;

import com.chixing.mapper.MyorderTravelerMapper;
import com.chixing.pojo.MyorderTraveler;
import com.chixing.service.MyorderTravelerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MyorderTravelerServiceImpl implements MyorderTravelerService {

    @Autowired
    private MyorderTravelerMapper myorderTravelerMapper;

    @Override
    public void saveMyorderTraveler(Integer myOrderId,String myorderTravelerName,String myorderTravelerIdCard) {
        MyorderTraveler myorderTraveler = new MyorderTraveler();
        myorderTraveler.setMyorderId(myOrderId);
        myorderTraveler.setTravelerName(myorderTravelerName);
        myorderTraveler.setTravelerIdcard(myorderTravelerIdCard);
        myorderTraveler.setMyorderTravelerStatus(1);
        myorderTravelerMapper.insert(myorderTraveler);
    }
}
